<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>宠物领养网   我的空间</title>
    <script type="text/javascript" src="${pageContext.request.contextPath}/jquery/jquery.min.js"></script>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/myplace.css"/>
  </head>
  
  <body>
      <div class="layout-head w960">
	    <div class="head-info">
	      <h1>${sessionScope.user.username }</h1>
	      <c:if test="${sessionScope.info.mytext == null || sessionScope.info.mytext == '' }">
	      		<div class="head-description" style="color:red;">没有填写...</div>
	      </c:if>
	      <c:if test="${sessionScope.info.mytext != null || sessionScope.info.mytext != '' }">
	      		<div class="head-description">${sessionScope.info.mytext }</div>
	      </c:if>
	    </div>
	  </div>
	  <div class="head_nav">
	    <div class="nav_bg"></div>
	    <div class="w960">
	      <div class="head-name">
	      	<c:if test="${user.power == 0 }">
        		<span style="color: red;" class="user-name textoverflow">管理员</span>
        	</c:if>
        	<c:if test="${user.power == 1 }">
        		<c:if test="${user.issale_power == 0 }">
        			<span class="user-name textoverflow">普通会员</span>
        		</c:if>
        		<c:if test="${user.issale_power == 1 }">
        			<span style="color: red;" class="user-name textoverflow">VIP会员</span>
        		</c:if>
        	</c:if>
	        <div class="head-description">http://dogstore/</div>
	      </div>
	      <ul>	
	      	<li><a href="${pageContext.request.contextPath}/user/myspace">主页</a></li>
	      	<c:if test="${user.power == 1 }">
	      		<li><a href="${pageContext.request.contextPath}/user/myadopt">我的领养</a></li>
	      		<li><a href="${pageContext.request.contextPath}/user/myremark">我的评论</a></li>
	      		<li class="fk"><a href="#">反馈问题</a></li>
	      	</c:if>
	        <c:if test="${user.power == 0 }">
	        	<li><a href="${pageContext.request.contextPath}/user/my_users">管理用户</a></li>
	        	<li><a href="${pageContext.request.contextPath}/user/my_articles">管理文章</a></li>
	        	<li><a href="${pageContext.request.contextPath}/user/my_usersend">实名申请</a></li>
	        	<li><a href="${pageContext.request.contextPath}/user/my_messages">管理反馈</a></li>
	        </c:if>
	        
	      </ul>
	      <div class="head-avatar"><img src="${pageContext.request.contextPath}/images/mylogo_1.jpg" alt=""></div>
	    </div>
	  </div>
  </body>
</html>
